#encoding:utf-8

from django.utils.encoding import force_unicode

def truncate_zhwords(s, num):
    s = force_unicode(s)
    length = int(num)
    if len(s) > length*2:
        s = s[:length*2]
        s += u'……'
    return u' '.join(s)